package com.longnows.appserver.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Objects;

@Entity
@Getter
@Setter
public class Coupon extends BaseEntity{
    @Id
    private Long id;

    private Integer activityId;

    private String title;

    private Date startTime;

    private Date endTime;

    private String description;

    private BigDecimal minus;

    private BigDecimal rate;

    private BigDecimal fullMoney;

    private String remark;

    private Boolean wholeStore;

    private Integer type;

    @ManyToMany(fetch = FetchType.LAZY,mappedBy = "couponList")
    private List<Category> categoryList;

}
